home *** CD-ROM | disk | FTP | other *** search
/ Ultimate Screensaver / Ultimate Screen Savers Collection (CMS Distributing) (1996).ISO / saver3 / xwsave1 / xwinsave.h < prev    next >
C/C++ Source or Header  |  1995-03-01  |  2KB  |  76 lines

  1. /* //////////////////////////////////////////////////////////////////////
  2.  
  3.   Module:   Xwinsave.h   - A Microsoft Windows screen saver using the
  4.                            screen savers from the X11 program Xlock.c
  5.  
  6.   Author:   Perry K. Sloope
  7.  
  8.   See Xwinsave.cpp for acknowledgements, copyright and other information.
  9.  
  10. //////////////////////////////////////////////////////////////////////  */
  11.  
  12. #ifndef _XWINSAVE__
  13. #define  _XWINSAVE__
  14. #ifdef _WIN32
  15. #define STRICK
  16. #endif
  17. #include <windows.h>
  18. #include <stdlib.h>
  19. #include <time.h>
  20. #include <string.h>
  21. #include "xlock.h"
  22. #include "wxfake.h"
  23. #include "xwinsav.rh"
  24. #define u_char unsigned char
  25. #define min(a,b) (((a) < (b)) ? (a) : (b))
  26. #define max(a,b) (((a) > (b)) ? (a) : (b))
  27.  
  28. extern "C"
  29. {
  30.   void initflame(Window  win);
  31.   void drawflame(Window win);
  32.   void initpyro(Window  win);
  33.   void drawpyro(Window win);
  34.   void initqix(Window  win);
  35.   void drawqix(Window win);
  36.   void initswarm(Window  win);
  37.   void drawswarm(Window win);
  38.   void inithop(Window  win);
  39.   void drawhop(Window win);
  40.   void initrotor(Window  win);
  41.   void drawrotor(Window win);
  42.   void initworm(Window  win);
  43.   void drawworm(Window win);
  44.   void initspline(Window  win);
  45.   void drawspline(Window win);
  46.   void initgrav(Window  win);
  47.   void drawgrav(Window win);
  48.   void initgalaxy(Window  win);
  49.   void drawgalaxy(Window win);
  50.   void initkaleid(Window  win);
  51.   void drawkaleid(Window win);
  52.   void inithelix(Window  win);
  53.   void drawhelix(Window win);
  54.   int  usleep(unsigned long usec);
  55.   void hsbramp(double h1, double s1, double b1, double h2, double s2, double b2,
  56.                     int count, u_char *red, u_char *green, u_char *blue);
  57. }
  58.  
  59. typedef struct {
  60.     char       *cmdline_arg;
  61.     void        (*lp_init) (Window);
  62.     void        (*lp_callback) (Window);
  63.     int         def_delay;
  64.     int         def_batchcount;
  65.     float       def_saturation;
  66.     char       *desc;
  67. }           LockStruct;
  68.  
  69.  
  70. #define MAXSELECTION_NAMESZ 10
  71. #define MAXSELECTION_SZ 100
  72. #define INI_FILE "control.ini"
  73. #define DEFSCRNSAVE "selection"  // Name of label in ini file for default screen saver.
  74.  
  75. #endif
  76.